package com.google.code.p.restrpc.http;

public class HttpClientFactoryFactory {
    
    static class HttpClientFactoryFactoryHolder {
        
        static HttpClientFactory defaultInstance = new DefaultHttpClientFactory();
        
        static HttpClientFactory cachedInstance = new CachedHttpClientFactory(new DefaultHttpClientFactory());
    }
    
    public static HttpClientFactory getDefaultHttpClientFactory() {
        return HttpClientFactoryFactoryHolder.defaultInstance;
    }
    
    public static HttpClientFactory getCachedHttpClientFactory() {
        return HttpClientFactoryFactoryHolder.cachedInstance;
    }
    
}
